package sipus.ui.render.combo;

import org.zkoss.zul.Comboitem;
import org.zkoss.zul.ComboitemRenderer;

public class GenericStringArrayRenderer implements ComboitemRenderer {

	@Override
	public void render(Comboitem arg0, Object arg1) throws Exception {
		Object[] oStrArray = (Object[]) arg1;
		arg0
				.setLabel(oStrArray[0].toString() + " - "
						+ oStrArray[1].toString());
		arg0.setValue(oStrArray[0].toString());
	}

}
